Learn how to send usage events to Flexprice via API
Field | Type | Description | Example |
---|---|---|---|
event_name | string | Must exactly match your feature’s Event Name | "model.usage" |
external_customer_id | string | Your identifier for the customer | "cust_123" |
Field | Type | When Required | Description |
---|---|---|---|
properties | object | For Sum, Max, Latest, Unique Count | Contains the values to aggregate |
properties.<field> | number/string | When aggregation field is set | The exact field name from your feature configuration |
Field | Type | Description | Example |
---|---|---|---|
event_id | string | Your unique identifier for the event | "evt_123" |
timestamp | string | ISO 8601 UTC timestamp | "2025-08-22T07:05:49.441Z" |
source | string | Origin of the event | "api" , "worker" |
credits
:
"2025-08-22T07:05:49.441Z"
external_customer_id
matches exactly